<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Language" content="ja" />
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<meta http-equiv="content-script-type" content="text/javascript" />
	<meta name="Description" content="炊き出したんは炊き出し情報をつぶやくボットです。" />
	<meta name="Keywords" content="炊き出したん,たきだしたん,Hack For Japan" />
	<meta name="robots" content="INDEX,FOLLOW" />
	<title>炊き出し情報</title>
	
<script type="text/javascript" src="js/jquery.js" ></script>
<script type="application/javascript">
<!--
function getUrlVars()
{
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i <hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}

$(document).ready(function(){
  // ここに処理を記述します
  $.get(
    "view2",
    { id: getUrlVars()["id"] },
    function(json) {
      if (json.status == 'OK') {
        $('#body').children('span').remove();
        $('<span/>').appendTo('#body').html(json.body);
        
        $('#title').children('span').remove();
        $('<span/>').appendTo('#title').html(json.title);
        $('#map').attr('href', json.map);
        
      } else {
        alert(json.errorMessage);
      }
    });
});
//-->
</script></head>

<body>
<table width="400" border=1 cellspacing=0 cellpadding=3　bordercolordark="#ffffff" bordercolor="#777777">
  <tr>
    <td><a id="map" href=""><p id="title"><span></span></p></a></td>
  </tr>
  <tr>
    <td><p id="body"><span></span></p></td>
  </tr>
</table>
<br>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4906767724811445";
/* 炊き出したん１ */
google_ad_slot = "8809283657";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</body>
</html>
